const http = require('http');

http.createServer((req,res)=>{
    res.setHeader('content-type','text/html;charset=utf-8');
    res.end('<h1 style="color:red">欢迎来到我的小站</h1>');
}).listen(80,()=>{
    console.log("80端口服务已起动");
});